import { CHANGE_MENU } from '../constants/ActionTypes';

const initialState = {
  selectedMenu: '',
};

const changeMenu = (state = initialState, action) => {
  switch (action.type) {
    case CHANGE_MENU:
      return Object.assign({}, state, {
        selectedMenu: action.selectedMenu,
      });
    default:
      return state;
  }
};

export default changeMenu;
